<template>
  <div>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column prop="title" label="文章标题" width="180">
      </el-table-column>
      <el-table-column prop="commentSum" label="评论数量" width="180">
      </el-table-column>
      <el-table-column prop="createdTime" label="发表日期" width="180">
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import { GetCommentTopten } from "../api/articles";
export default {
  data() {
    return {
      tableData: [],
    };
  },
  mounted() {
    GetCommentTopten().then(({ data }) => {
      console.log(data);
      this.tableData = data.data;
    });
  },
};
</script>

<style>
</style>